<clickhouse>
    <default_replica_path>/clickhouse/tables/{database}/{table}</default_replica_path>
    <default_replica_name>{replica}</default_replica_name>

    <macros>
        <replica>{replica_name}</replica>
    </macros>

    <logger>
        <level>information</level>
        <log>/var/log/clickhouse-keeper/clickhouse-keeper.log</log>
        <errorlog>/var/log/clickhouse-keeper/clickhouse-keeper.err.log</errorlog>
        <size>never</size>
    </logger>

    <zookeeper>
        <node>
            <host>{keeper}</host>
            <port>9181</port>
        </node>
    </zookeeper>

    <remote_servers>
        <test_cluster>
            <shard>
                <replica>
                    <host>{server1}</host>
                    <port>9000</port>
                </replica>
                <replica>
                    <host>{server2}</host>
                    <port>9000</port>
                </replica>
                <replica>
                    <host>{server3}</host>
                    <port>9000</port>
                </replica>
            </shard>
        </test_cluster>
    </remote_servers>

    <interserver_http_port>9009</interserver_http_port>

    <distributed_ddl>
        <path>/clickhouse/task_queue/ddl</path>
        <profile>default</profile>
        <pool_size>1</pool_size>
        <task_max_lifetime>604800</task_max_lifetime>
        <cleanup_delay_period>60</cleanup_delay_period>
        <max_tasks_in_queue>1000</max_tasks_in_queue>
    </distributed_ddl>
</clickhouse>
